Skip to content

test(e2e): add a headless browser journey against the production build - #218

Merged
CodeWithMa merged 2 commits into
CodeWithMa:devfrom
CodeWithMaBot:test/e2e-journey
Nov 26, 2026
Merged

CodeWithMa merged 2 commits into
CodeWithMa:devfrom
CodeWithMaBot:test/e2e-journey

Conversation

@CodeWithMaBot

Copy link
Copy Markdown
Contributor

Summary

  • Adds one Playwright test that runs against the production build: add a series, reload, mark an episode watched, check the history, delete the series. It covers what the jsdom specs can't: the production bundle, its CSP, real clicks, and real IndexedDB.
  • CI runs the journey against the nginx preview container.
  • Drops frame-ancestors from the <meta> CSP. Browsers ignore that directive in a meta tag and log a console error on every page load. The nginx header still sends it.

Test plan

  • bun run e2e passes locally (on NixOS: E2E_CHROMIUM_PATH=$(which chromium) bun run e2e)
  • CI e2e job passes

🤖 Generated with Claude Code

CodeWithMaBot and others added 2 commits November 22, 2026 18:10
One Playwright test adds a series, reloads, marks an episode watched,
checks the history, and deletes the series. It covers what the jsdom specs
cannot: the production bundle, its CSP, real clicks, and real IndexedDB.

CI runs it against the nginx preview container.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Browsers ignore frame-ancestors in a <meta> tag and log a console error on
every page load. The nginx header keeps it; the browser test no longer
needs to excuse the error.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@vercel

vercel Bot commented Nov 26, 2026

Copy link
Copy Markdown

@CodeWithMaBot is attempting to deploy a commit to the Ma's projects Team on Vercel.

A member of the Team first needs to authorize it.

@coderabbitai

coderabbitai Bot commented Nov 26, 2026

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 2c317019-8f1b-4c80-a8b4-8d8cb48e3ebc
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@codecov

codecov Bot commented Nov 26, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@vercel

vercel Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
watch-list Ready Ready Preview Nov 26, 2026 4:49pm UTC

@CodeWithMa
CodeWithMa merged commit 5579153 into CodeWithMa:dev Nov 26, 2026
9 checks passed
@CodeWithMaBot
CodeWithMaBot deleted the test/e2e-journey branch November 26, 2026 16:56

This branch was successfully deployed

1 active deployment
Preview — 97869e7b Deployed Nov 26, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants